
<div class="app-content-body ">

  <div class="bg-light lter b-b wrapper-md hidden-print">
    <h1 class="m-n font-thin h3">会员列表</h1>
  </div>

  <div>
    <div class="crud-container crud-reset">
        <div class="row">
            <div class="col-sm-9">
                <div class="crud-buttons buttons-flex">
                    <a href="#/member_edit" dx-toggle="button" dx-options='{"type": "normal"}'>新增</a>
                    <div dx-toggle="button" dx-options='{"type": "default"}'>default</div>
                    <div dx-toggle="button" dx-options='{"type": "danger"}'>danger</div>
                    <div dx-toggle="button" dx-options='{"type": "success"}'>success</div>
                </div>
            </div>
            <div class="col-sm-3">
              <div class="input-group">
		            <input type="text" class="input-sm form-control" placeholder="Search">
		            <span class="input-group-btn">
		              <button class="btn btn-sm btn-default" type="button">搜索</button>
		            </span>
		          </div>
           </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="crud-grid"></div>
            </div>
        </div>
    </div>
  </div>
</div>

<script>
  $(function () {
    $(".crud-container").crud({
      url: API("members"),

      columns: [{
        dataField: 'nickname',
        caption: '会员昵称'
      }, {
        dataField: 'mobile',
        caption: '手机号'
      }, {
        dataField: 'identity_card',
        caption: '身份证'
      },{
        dataField: 'uname',
        caption: '会员姓名'
      }, {
        dataField: 'member_card',
        caption: '会员卡号'
      }, {
        dataField: 'withdraw_total',
        caption: '累计分红'
      }, {
        dataField: 'withdraw_total',
        caption: '累计提现'
      }, {
        dataField: 'withdraw_total',
        caption: '会员角色'
      }, {
        dataField: 'updated_at',
        caption: '更新时间'
      }, {
        caption: '操作',
        buttons: [{
          title: '查看'
        }, {
          title: '编辑',
          url: '#/member_edit/{{id}}'
        }]
      }]
    });
  });
</script>